home *** CD-ROM | disk | FTP | other *** search
-
-
- TABLE OF CONTENTS
-
- rexxxref.library/--rexxhost--
- rexxxref.library/ExpungeXRef
- rexxxref.library/FindXRef
- rexxxref.library/LoadXRef
-
-
- rexxxref.library/--rexxhost-- rexxxref.library/--rexxhost--
-
- HOST INTERFACE
- rexxxref.library provides an ARexx function host interface that
- enables ARexx programs to take advantage of the features of the
- XRef-System.
-
- The function host library vector is located at offset -30 from the
- library. This is the value you provide to ARexx in the AddLib()
- function call.
-
- FUNCTIONS
- FindXRef(STRING/A,CATEGORY,LIMIT/N,NOPATTERN/S,NOCASE/S,STEM)
- LoadXRef(FILE/A,XREFPRI/N,LOCK/S,INDEX/S)
- ExpungeXRef(CATEGORY,FILE,FORCE/S)
-
- EXAMPLES
- /* xref.library ARexx example */
- OPTIONS RESULTS
-
- IF ~SHOW('L','xref.library') THEN
- CALL ADDLIB('xref.library',0,-30)
-
- /* load explicitly the sys_autodoc.xref */
- IF LoadXRef('sys_autodoc.xref',10,,'INDEX') THEN
- Say "sys_autodoc.xref loaded with priority 10 !"
- ELSE
- Say "Can't load sys_autodoc.xref"
-
- IF FindXRef('#?Window#?',,10,,,,) THEN
- DO i = 1 TO xref.count
- Say "XRef : " xref.i.Name
- Say "Type : " xref.i.Type
- Say "NodeName : " xref.i.NodeName
- Say "File : " xref.i.File
- Say "Path : " xref.i.Path
- Say "Line : " xref.i.Line
- END
- ELSE
- Say "FindXRef() error : " ERRORTEXT(RC)
- EXIT
-
- SEE ALSO
- ParseXRef() ,XR_LoadXRef() ,XR_ExpungeXRef()
-
- rexxxref.library/ExpungeXRef rexxxref.library/ExpungeXRef
-
- NAME
- ExpungeXRef - expunge a/some xreffiles from memory
-
- SYNOPSIS
- ExpungeXRef(CATEGORY,FILE,FORCE/S)
-
- FUNCTION
- This is the Rexx-Function-Interface to the XR_ExpungeXRef() function
- of the xref.library.
-
- INPUTS
- CATEGORY - category of xreffiles to expunge
- FILE - expunge only the given file
- FORCE - expunge also xreffiles, which are locked
-
- RESULTS
- Set RC to RC_WARN, if no xreffiles was expunged. Otherwise
- set to RC_OK.
-
- SEE ALSO
- LoadXRef() ,FindXRef() ,XR_ExpungeXRef()
-
- rexxxref.library/FindXRef rexxxref.library/FindXRef
-
- NAME
- FindXRef - searchs for a given pattern and returns the xref entries
-
- SYNOPSIS
- FindXRef(STRING/A,CATEGORY,LIMIT/N,NOPATTERN/S,NOCASE/S,STEM)
-
- FUNCTION
- Searchs for a given pattern or string. If one or more xref entries
- are found, this function returns the full information about the xref
- entry in the specified stem variable.
-
- INPUTS
- STRING - string/pattern to search for
- CATEGORY - category to search in
- LIMIT - maximal number of entries to return
- NOPATTERN- string isn't a pattern
- NOCASE - ignore case ('A'=='a')
- STEM - stem variable to use, if not specified it uses the
- "XRef" as stem base name !
- The following stem field are supported :
- XRef.Count
- XRef.n.Type
- XRef.n.Name
- XRef.n.NodeName
- XRef.n.File
- XRef.n.Path
- XRef.n.Line
-
- RESULTS
- Set RC to WARN,if no entry was found. Otherwise set to RC_OK
-
- SEE ALSO
- LoadXRef() ,ExpungeXRef() ,ParseXRef()
-
- rexxxref.library/LoadXRef rexxxref.library/LoadXRef
-
- NAME
- LoadXRef - loads a xreffile into memory
-
- SYNOPSIS
- LoadXRef(FILE/A,XREFPRI/N,LOCK/S,INDEX/S)
-
- FUNCTION
- This is the Rexx-Interface function to the xref.library XR_LoadXRef()
- function.
-
- INPUTS
- FILE - xreffile to load
- XREFPRI - priority to use for this xreffile (Enqueue())
- LOCK - lock this xreffile
- INDEX - create an index for this xreffile
-
- RESULTS
- Set RC to RC_WARN, if the xreffile could not loaded. Otherwise
- set to RC_OK.
-
- SEE ALSO
- FindXRef() ,ExpungeXRef() ,XR_LoadXRef()
-
-